From 4dc5f8aa9bf096989c6d8f85adbfa87b6f881037 Mon Sep 17 00:00:00 2001 From: oliskoli Date: Sun, 22 Jan 2006 18:15:45 +0000 Subject: [PATCH] Added shell command "cat" (will become "TYPE"). --- gpsbabel/mingw/mkwintesto.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/gpsbabel/mingw/mkwintesto.c b/gpsbabel/mingw/mkwintesto.c index 3b25829d4..005f850ad 100644 --- a/gpsbabel/mingw/mkwintesto.c +++ b/gpsbabel/mingw/mkwintesto.c @@ -321,6 +321,17 @@ int argc, iTranslateQuotes = 1; iQuoteCount = 1; } + /* Is this one of the test sequences where we prepare some data? */ + if (strncmp("cat ",acLineIn,4) == 0) { + if (iEchoLevel > 0) { + f_outputLine(pfTestoOut, "@echo off"); + f_outputLine(pfTestoOut, "@echo."); + iEchoLevel = 0; + } + iStart = 4; + strcat(acLineOut, "TYPE "); + iTarget = 5; + } /* Is this one of the test sequences where we prepare some data by using sed? */ /* we only cater for sed that removes lines - this is only windows after all */ if (strncmp("sed '/^L",acLineIn,8) == 0) { -- 2.30.2